﻿@model RedSand.Site.Models.RoleInfo
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="dialog" title="Create" style="width: 378px;">
    @using (Ajax.BeginForm(AdminAjaxOptions.CreateNew))
    {
        <div class="dialog-content">
            <div class="form-cell none-float">
                @Html.LabelFor(model => model.Name)
                @Html.TextBoxFor(mode => mode.Name)
            </div>
            <div class="form-cell">
                @Html.LabelFor(model => model.Status)
                @Html.DropDownListFor(model => model.Status, DropDownListHelper.GetStatusList(false))
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="dialog-footer">
            <input type="submit" value="Save"/>
            <input type="button" value="Cancel" onclick="closeDialog('.dialog')" />
        </div>
    }
</div>
